namespace HybridCLR.Extension.Editor
{
    [System.Serializable]
    public class BuildParam
    {
        [System.NonSerialized]
        public BuildResult Result = BuildResult.Building;
        public ECatalogUpdateType CatalogUpdateType;
        public string CopyAddressableFileToPath = "HybridCLRDataBuild";
        public string CopyDllToPath = "Assets/HybridCLRGenerate/Dll";
        public string CacheCatalogPath = "Assets/HybridCLRGenerate/CacheCatalog";
        public string CatalogReplaceOldUrl = "{UnityEngine.AddressableAssets.Addressables.RuntimePath}";
        public string CatalogReplaceNewUrl = "http://localhost:80/";
        
        public UnityEditor.AddressableAssets.Build.AddressableAssetBuildResult AddressableAssetBuildResult;
        public string NewCatalogUrl => System.IO.Path.Combine(CopyAddressableFileToPath, "catalog.json");
    }

    public enum BuildResult
    {
        Building,
        Fail,
        Success,
    }
}
